A. java.awt
B. javax.swing
C. java.applet
D. java.io
Advertisement
Related Mcqs:
- A method within a class is only accessible by classes that are defined within the same package as the class of the method. Which one of the following is used to enforce such restriction ?
- A. Declare the method with the keyword public. B. Declare the method with the keyword private. C. Do not declare the method with any accessibility modifiers. D. Declare the method with the keyword public and private....
- In java, gc() method is available in which package ?
- A. java.io package B. java.lang package C. java.awt package D. java.util package...
- Which is the predefined package ?
- A. Lang package B. util package C. io package D. All of above...
- A package is a collection of__________________?
- A. Classes and Interfaces B. Classes C. Editing tools D. Editing tools and Interfaces...
- If method have same name as class name and method don’t have any return type then it is known as______________?
- A. Constructor B. Destructors C. Variable D. Object...
- All collection classes are available in _________________?
- A. java.util package B. java.io package C. java.lang package D. java.awt package...
- x=x+1 is equivalent to _________________?
- A. x++ B. ++x C. x=x-1 D. None of these...
- Suppose a class has public visibility. In this class we define a protected method. Which of the following statements is correct ?
- A. From within protected methods you do not have access to public methods. B. This method is only accessible from inside the class itself and from inside all subclasses. C. In a class, you cannot declare methods with a lower visibility than the visibility of the class in which it is defined. D. This method...
- Which method can’t be overidden ?
- A. println B. final C. super D. static...
- Which method is used to perform DML statements in JDBC ?
- A. executeUpdate() B. executeQuery() C. execute() D. None of above...
Advertisement